import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { HttpOrderController } from './httpOrder.controller';
// import { HttpOrder } from './httpOrder.entity';
import { HttpOrderService } from './httpOrder.service';
import BaseMachine from '@main/entities/service/admin/base/base-machine.entity';
// import ProductionOrder from '../modules/admin/production/production-order.entity'
import ProductionOrder from '@main/entities/service/admin/production/production-order.entity';
import BaseMaterial from '@main/entities/service/admin/base/base-material.entity';
// import BaseCustom from '@main/entities/service/admin/base/base-custom.entity';
import { BaseModule } from './../modules/admin/base/base.module';
import { ProductionModule } from './../modules/admin/production/production.module';
import { WipModule } from './../modules/admin/wip/wip.module';
import SysRoleMenu from '@main/entities/service/admin/sys/sys-role-menu.entity';
import SysRole from '@main/entities/service/admin/sys/sys-role.entity';
import SysUserRole from '@main/entities/service/admin/sys/sys-user-role.entity';
import SysUser from '@main/entities/service/admin/sys/sys-user.entity';
import SysConfig from '@main/entities/service/admin/sys/sys-config.entity';
import SysPageColumn from '@main/entities/service/admin/sys/sys-page-column.entity';
import SysDictionary from '@main/entities/service/admin/sys/sys-dictionary.entity';
import SysDictionaryType from '@main/entities/service/admin/sys/sys-dictionary-type.entity';
import SysLabelTemplate from '@main/entities/service/admin/sys/sys-label-template.entity';
import SysOperationLog from '@main/entities/service/admin/sys/sys-operation-log.entity';
import SysErpField from '@main/entities/service/admin/sys/sys-erp-field.entity';

@Module({
  imports: [
    BaseModule,
    ProductionModule,
    WipModule,
    TypeOrmModule.forFeature([
      BaseMachine,
      BaseMaterial,
      // BaseCustom,
      ProductionOrder,
      SysOperationLog,
      SysRoleMenu,
      SysRole,
      SysUserRole,
      SysUser,
      SysConfig,
      SysPageColumn,
      SysDictionary,
      SysDictionaryType,
      SysLabelTemplate,
      SysErpField
    ]),
  ],
  controllers: [HttpOrderController],
  providers: [HttpOrderService],
  exports: [TypeOrmModule, HttpOrderService],
})
export class HttpOrderModule {}
